/** @namespace app.model.User */
module.exports = app => {
  const {STRING} = app.Sequelize;
  const Anchor = app.model.define('user', {
    username: {type: STRING, allowNull: false, unique: 'username'},
    password: {type: STRING, allowNull: false},
  }, {
    tableName: 'spider_user',
  });

  return Anchor;
};